package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 告警规则绑定人和车的中间对象 t_alarm_rule_person_vehicle
 * 
 * @author wp
 * @date 2023-08-10
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
@TableName(value = "t_alarm_rule_person_vehicle", excludeProperty = {"createBy","updateTime","updateBy","remark"})
public class AlarmRulePersonVehicle extends BaseEntity {

    /** ID */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /** 报警规则id */
    @Excel(name = "报警规则id")
    private Long alarmRuleId;

    /** 业务id（用户id或者车辆id） */
    @Excel(name = "业务id", readConverterExp = "用户id或者车辆id")
    private Long businessId;
}
